package com.wfw.provider.consul;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@EnableDiscoveryClient
@RestController
@Configuration
public class WfwProviderConsulApplication {
    @RequestMapping("/")
    public String home() {
        return "Hello World";
    }
    @RequestMapping("/check")
    public boolean check() {
        return true;
    }
    public static void main(String[] args) {
        SpringApplication.run(WfwProviderConsulApplication.class, args);
    }

}
